//
//  DailyCountTool.swift
//  MM2
//
//  Created by 李成明 on 2022/1/2.
//

import Foundation
import UIKit

class DailyCountTool {
    static func countImageSize(imgNum: Int) -> CGSize{
        var width: CGFloat = 0
        switch imgNum {
        case 1:
            width = 180
        case 2,4:
            width = kScreenWidth/2 - 16
        case 3,5,6:
            width = (kScreenWidth - 32)/3
        default:
            width = 0
        }
        return CGSize(width: width, height: width)
    }
}
